package cn.itsource.ymjs.api;

import cn.itsource.ymjs.doc.CourseDoc;
import cn.itsource.ymjs.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

@RequestMapping("/fitnessCourseDoc")
@FeignClient(value = "service-search")
public interface FitnessCourseAPI {

    @PostMapping("/add")
    JSONResult batchAdd(@RequestBody List<CourseDoc> courseDocs);

    @PostMapping("/del")
    JSONResult batchDel(@RequestBody List<Long> ids);
}
